package test0103.test02;

public class Position {
    int pid;
    String pname;
    Employee[] employees = new Employee[10];
    int i = 0;

    public Position() {
    }

    public Position(int pid, String pname) {
        this.pid = pid;
        this.pname = pname;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    @Override
    public String toString() {
        return "Position{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                '}';
    }

    public void addEmployee(Employee employee) {
        employees[i++] =employee;

    }
}
